﻿// -----------------------------------------------------------------------
// <copyright file="AttachmentWorkOrder_BLL.cs" company="">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace PMSGSC.BLL
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using PMSGSC.DAL;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public class AttachmentWorkOrder_BLL
    {
        public static List<AttachmentWorkOrder> GetAll(int shipID)
        {
            return AttachmentWorkOrder_DAL.GetAll(shipID);
        }
        public static bool Insert(AttachmentWorkOrder Attachment)
        {
            return AttachmentWorkOrder_DAL.Insert(Attachment);
        }
        public static AttachmentWorkOrder GetDataById(int id)
        {
            return AttachmentWorkOrder_DAL.GetDataById(id);
        }
        public static bool Update(AttachmentWorkOrder Attachment)
        {
            return AttachmentWorkOrder_DAL.Update(Attachment);
        }
        public static bool Delete(AttachmentWorkOrder Attachment)
        {
            return AttachmentWorkOrder_DAL.Delete(Attachment);
        }
        public static bool IsExits(AttachmentWorkOrder Attachment)
        {
            return AttachmentWorkOrder_DAL.IsExits(Attachment);
        }
        public static List<AttachmentWorkOrder> GetDataByworkOrderID(int id, bool isChanged)
        {
            return AttachmentWorkOrder_DAL.GetDataByworkOrderID(id, isChanged);
        }
        public static bool IsExitsID(AttachmentWorkOrder AttachmentWorkOrder)
        {
            return AttachmentWorkOrder_DAL.IsExitsID(AttachmentWorkOrder);
        }
        public static bool DeleteByID(int id)
        {
            return AttachmentWorkOrder_DAL.DeleteByID(id);
        }
        public static AttachmentWorkOrder GetDataByAttachmentJob(int id)
        {
            return AttachmentWorkOrder_DAL.GetDataByAttachmentJob(id);
        }
    
    }
}
